package cn.rokka.rbac.service;


import cn.rokka.rbac.domain.Permission;
import cn.rokka.rbac.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;

public interface IPermissionService {
    void delete(Long id);

    void save(Permission record);

    Permission getById(Long id);

    List<Permission> listAll();

    void update(Permission record);

    PageInfo<Permission> query(QueryObject qo);

    void batchSave(HashSet<Object> permissions);
}
